﻿// -----------------------------------------------------------------------
// <copyright file="Bubble.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace BubbleBlastSolver.Classes.BusinessLogic
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class Bubble
    {
        private uint m_weight = 0;

        public Bubble(uint weight)
        {
            this.m_weight = weight;
        }

        public uint Weight
        {
            get 
            {
                return m_weight;
            }
            set 
            {
                this.m_weight = value;
            }
        }

        public bool WillBlast
        {
            get
            {
                return this.m_weight == 1;
            }
        }

        public void Eat()
        {
            --this.m_weight;
        }
    }
}
